﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebMVC.ChiNhanh>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Tạo Chi Nhánh
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div>
	<hr />
	<ul class="breadcrumb">
        <li>
	        <a href="<%=Url.Action("Index","Home")%>">Trang Chủ</a> <span class="divider">/</span>
        </li>
        <li>
	        <a href="<%=Url.Action("Index","ChiNhanh")%>">Quản Trị Chi Nhánh</a> <span class="divider">/</span>
        </li>
        <li>
            <a href="#">Tạo Mới Chi Nhánh</a>
        </li>
	</ul>
	<hr />
</div>
<div class="row-fluid sortable">
	<div class="box span12">
		<div class="box-header" data-original-title>
			<h2><i class="icon-edit"></i><span class="break"></span>Tạo Mới Chi Nhánh</h2>
			<div class="box-icon">
				<a href="#" class="btn-minimize"><i class="icon-chevron-up"></i></a>
			</div>
		</div>
		<div class="box-content">
            <% using (Html.BeginForm("Create", "ChiNhanh", FormMethod.Post, new { Class = "form-horizontal" })) { %>
                <%= Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.") %>
                <fieldset>
                    <div class="control-group">
                        <label class="control-label" for="Ten">Tên</label>
                        <div class="controls">
                            <%= Html.TextBoxFor(m => m.Ten, new { Class="input-xlarge" })%>
                        </div>
                    </div>
                    
                    <div class="control-group">
                        <label class="control-label" for="Tel">Điện Thoại</label>
                        <div class="controls">
                            <%= Html.TextBoxFor(m => m.Tel, new { Class = "input-xlarge" })%>
                        </div>
                    </div>
                    
                    <div class="control-group">
                        <label class="control-label" for="Dia_chi">Địa Chỉ</label>
                        <div class="controls">
                            <%= Html.TextBoxFor(m => m.Dia_chi, new { Class = "input-xlarge" })%>
                        </div>
                    </div>
                    
                    <div class="control-group">
                        <label class="control-label" for="Ma_khu_vuc">Khu Vực</label>
                        <div class="controls">
                            <%=Html.DropDownListFor(m => m.Ma_khu_vuc, (IEnumerable<SelectListItem>)ViewData["ListKhuVuc"])%>
                        </div>
                    </div>
                    
                    <div class="control-group">
                        <label class="control-label" for="Truong_chi_nhanh">Trưởng Chi Nhánh</label>
                        <div class="controls">
                            <%=Html.DropDownListFor(m=>m.Truong_chi_nhanh, (IEnumerable<SelectListItem>) ViewData["ListThanhVien"]) %>
                        </div>
                    </div>
                    
                    <div class="control-group">
                        <label class="control-label" for="Ghi_chu">Ghi chú</label>
                        <div class="controls">
                            <%= Html.TextAreaFor(m => m.Ghi_chu, new { rows="6", cols="50" })%>
                        </div>
                    </div>
                    
                    <div class="form-actions">
                        <input type="submit" value="Cập Nhật" class="btn btn-primary" />
                    </div>
                </fieldset>
            <% } %>
        </div>
    </div>
</div>
<hr />
</asp:Content>
